<?php
echo $form->create($configModelName,array('url'=>'/'.$this->params['url']['url'],'enctype'=>'multipart/form-data'));
echo $form->inputs(array('fieldset'=>false),null,'add');
echo $form->end(__('Save'));
?>

<script type="text/javascript">
$(document).ready(function()
{
	toggleCaptcha('guestCommentGallery','galleryCommentCaptcha');
	toggleCaptcha("guestCommentReview","reviewCommentCaptcha");
    var checkSnippetType = function()
    {
        if($('#ListingConfigEnableRichSnippets').attr("checked"))
         {
           $('#ListingConfigSnippetEntity').parent().show();
         }else
          {
            $('#ListingConfigSnippetEntity').parent().hide();
          }
    }
    $('#ListingConfigEnableRichSnippets').change(checkSnippetType);
    checkSnippetType();
});
function toggleCaptcha(caller,captchaField)
{
	
	var checked = $('.'+caller).attr('checked');
	//console.log(checked);
	if(checked == 'checked')
	{
		//$('.'+captchaField).parent().show();
		$('.'+captchaField).attr('disabled', false);
	}else
	{
		$('.'+captchaField).attr('checked',false);
		//$('.'+captchaField).parent().hide();
		$('.'+captchaField).attr('disabled', 'disabled');
	}
	return false;
}
</script>